﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Tss.MagicWeb.Domain.Abstract;

namespace Tss.MagicWeb.Domain.Cards
{
    public static class PhysicalCardFactory
    {
        public static BasePhysicalCard CreatePhysicalCard(Guid guid)
        {
            return ((IBasePhysicalCardRepository)DependencyResolver.Current.GetService(typeof(IBasePhysicalCardRepository))).GetCardByGuid(guid);
        }

        public static BasePhysicalCard CreatePhysicalCard(String guid)
        {
            return CreatePhysicalCard(new Guid(guid));
        }

    }
}
